<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>

</body>
<script>
    var obj = Object.assign({},{a:"a"},{b:"b"},{c:'c',a:"a2"})
    console.log(obj);
</script>
</html>